package com.aaa.three.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @PACKAGE_NAME: com.aaa.three.util
 * @NAME: QueryDate
 * @USER: Tprairie
 * @DATE: 2022/2/20
 * @PROJECT_NAME: three
 */
public class QueryDate {
    public static String query(Integer i){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        c.add(Calendar.DATE,+i);
        Date d = c.getTime();
        String day = simpleDateFormat.format(d);
        return day;
    }
}
